﻿using System;
using Volo.Abp.Domain.Entities;

namespace ParkManagement
{
    /// <summary>
    /// 停车记录类
    /// </summary>
    public class Record: Entity<int>
    {
        /// <summary>停车场编号</summary>
        public int LotId { get; protected set; }

        /// <summary>车位号</summary>
        public string ParkNo { get; protected set; }

        /// <summary>入场时间</summary>
        public DateTime EntryTime { get; protected set; }

        /// <summary>出场时间</summary>
        public DateTime? OutTime { get; protected set; }

        /// <summary>车牌号</summary>
        public string PlateNumber { get; protected set; }

        /// <summary>消费金额</summary>
        public int Monetary { get; protected set; }

        /// <summary>停车场</summary>
        public Lot Lot { get; protected set; }

        private Record() { }
    }
}